package com.norbitltd.guavaleaves.java.text;

import java.text.NumberFormat;

import com.google.common.base.Predicate;

public class NumberFormatPredicates {

	public static Predicate<NumberFormat> isGroupingUsed() {
		return new Predicate<NumberFormat>() {
			public boolean apply(NumberFormat input) {
				return input.isGroupingUsed();
			}
		};
	}

	public static Predicate<NumberFormat> isParseIntegerOnly() {
		return new Predicate<NumberFormat>() {
			public boolean apply(NumberFormat input) {
				return input.isParseIntegerOnly();
			}
		};
	}
	
}
